Intersoft.Client.Framework Namespace > DelegateEvent<TPayload> Class > Subscribe Method : Subscribe(Action<TPayload>,SubscribeOptions,Predicate<TPayload>) Method |
Public Overloads Overridable Function Subscribe( _ ByVal action As Action(Of TPayload), _ ByVal options As SubscribeOptions, _ ByVal filter As Predicate(Of TPayload) _ ) As SubscriptionToken
Dim instance As DelegateEvent(Of TPayload) Dim action As Action(Of TPayload) Dim options As SubscribeOptions Dim filter As Predicate(Of TPayload) Dim value As SubscriptionToken value = instance.Subscribe(action, options, filter)
public virtual SubscriptionToken Subscribe( Action<TPayload> action, SubscribeOptions options, Predicate<TPayload> filter )
public: virtual SubscriptionToken^ Subscribe( Action<TPayload^>^ action, SubscribeOptions options, Predicate<TPayload^>^ filter )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2